<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">公益游名额分配</h1>
</div>
<div class="panel panel-default">
  <div class="panel-body">
    <div class="col-lg-4">
      <div class="input-group" >
        <div class="input-group-btn" >
          <span class="btn btn-default">活动名称</span>
        </div>
        <input type="text" class="form-control" ng-model="fromData.acname">
      </div>
    </div>
    <div class="col-lg-2">
      <button class="btn btn-success" ng-click="search(1)">立即搜索</button>
    </div>
  </div>

  <div class="panel-body">

    <!-- 网络太差, 画圈等 -->
    <h3 class="col-sm-12 text-center" ng-show="fromData.loading">
      <i class="fa fa-spin fa-spinner hide show inline"/>
    </h3>

    <table class="table table-striped table-bordered" ng-show="!fromData.loading">
      <thead>
        <tr>
          <th style="width: 20%; text-align: center">活动名称</th>
          <th style="width: 10%; text-align: center">出游日期</th>
          <th style="width: 13%; text-align: center">景区营业时间</th>
          <th style="width: 10%; text-align: center">名额(人)</th>
          <th style="width: 15%; text-align: center">地址</th>
          <th style="width: 10%; text-align: center">活动类型</th>
          <th style="width: 12%; text-align: center"></th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="activity in activity_list">
          <td>{{activity.title}}</td>
          <td class="text-center">{{activity.tour_date}}</td>
          <td class="text-center">{{activity.open_time}}</td>
          <td class="text-center">{{activity.tour_stock}}</td>
          <td>{{activity.address}}</td>
          <td class="text-center">{{activity.active_type=='1'?'供应商活动':'平台活动'}}</td>
          <td class="text-center">
            <button type="button" ng-if="activity.expire == 1 && activity.active_type=='0'" class="btn btn-primary btn-xs" ng-click="setting(activity,info)">企业分配</button>
            <button type="button" ng-if="activity.expire == 1 && activity.active_type=='1'" class="btn btn-primary btn-xs" ng-click="setting1(activity,info)">个人分配</button>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="text-right" ng-show="!fromData.loading" style="background-color: white; margin-right: 30px">
      <pagination total-items="totalItems" ng-model="currentPage" ng-change="search(currentPage)" 
       previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页" max-size="5" 
       boundary-links="true" rotate="false" items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
    </div>
</div>

</div>
      